package org.jeecg.modules.nongjt.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.nongjt.entity.NjtCertificate;
import org.jeecg.modules.nongjt.mapper.NjtCertificateMapper;
import org.jeecg.modules.nongjt.service.INjtCertificateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 合格证打印数据 服务实现类
 * </p>
 *
 * @author yaorange
 * @since 2022-06-17
 */
@Service
public class NjtCertificateServiceImpl extends ServiceImpl<NjtCertificateMapper, NjtCertificate> implements INjtCertificateService {
    @Autowired
    private NjtCertificateMapper njtCertificateMapper;
    /**
     * 分页列表查询
     *
     * @param page           分页对象
     * @param njtCertificate 实体对象
     * @param dateBegin      合格证开具开始日期
     * @param dateEnd        合格证开具结束日期
     * @return IPage<NjtCertificate>
     */
    @Override
    public IPage<NjtCertificate> getPage(Page<NjtCertificate> page, NjtCertificate njtCertificate, String dateBegin, String dateEnd) {
        return njtCertificateMapper.selectPageByXml(page, njtCertificate, dateBegin, dateEnd);
    }

}
